﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

[ServiceContract(Namespace="")]
public interface IUploadService
{
    [OperationContract]
    Guid BeginUpload(string filename);
	[OperationContract]
	void UploadChunks(Chunk chunk);
    [OperationContract]
    void EndUpload(Guid key);
}

[DataContract(Namespace="")]
public class Chunk
{
    [DataMember]
    public Guid UploadKey { get; set; }
    [DataMember]
    public int Sequence { get; set; }
    [DataMember]
    public byte[] Data { get; set; }
}
